import { createApp } from 'vue'
import App from './App.vue'

import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/dist/locale/zh-cn.js'

import router from '@/router'

import '@/Style/main.scss'

const app = createApp(App);

const pinia = createPinia();
const persist = createPersistedState();

pinia.use(persist)

app.use(pinia).use(router).use(ElementPlus, { locale });

app.mount('#app')
